package com.mall.business.domain.entity;

import com.mall.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mall.common.core.domain.BaseEntity;

/**
 * 购物车对象 bus_cart
 *
 * @author zhonglin
 * @date 2020-05-24
 */
public class BusCart
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 购物车 id
   */
  private Long cartId;

  /**
   * 会员 id
   */
  @Excel(name = "会员 id")
  private Long memberId;

  /**
   * sku id
   */
  @Excel(name = "sku id")
  private Long skuId;

  /**
   * 数量
   */
  @Excel(name = "数量")
  private Long qty;

  public void setCartId(Long cartId) {

    this.cartId = cartId;
  }

  public Long getCartId() {

    return cartId;
  }

  public void setMemberId(Long memberId) {

    this.memberId = memberId;
  }

  public Long getMemberId() {

    return memberId;
  }

  public void setSkuId(Long skuId) {

    this.skuId = skuId;
  }

  public Long getSkuId() {

    return skuId;
  }

  public void setQty(Long qty) {

    this.qty = qty;
  }

  public Long getQty() {

    return qty;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("cartId", getCartId())
                                                                    .append("memberId", getMemberId())
                                                                    .append("skuId", getSkuId())
                                                                    .append("qty", getQty())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
